package net.ddns.xcyyds.kungfu.procedures;

import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.event.entity.living.LivingFallEvent;


@Mod.EventBusSubscriber
public class QingGongJianShangProcedure {
	@SubscribeEvent
	public static void onEntityFall(LivingFallEvent event) {
		float a = (float) event.getEntity().getPersistentData().getDouble("jumpCount");
		if (event.getEntity() != null) {
			
			event.setDamageMultiplier( 1-a%1);
				
			//else {if (event.isCancelable()&& event.getEntity() != null){event.setCanceled(true);}}


		}
	}




}
